<!DOCTYPE html>
<html lang="en-US" dir="ltr">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>slider | Webzen-ui</title>
    <meta name="description" content="hello world">
    <link rel="preload stylesheet" href="/webzen-ui/assets/style.724b350b.css" as="style">
    <script type="module" src="/webzen-ui/assets/app.50f202a0.js"></script>
    <link rel="preload" href="/webzen-ui/assets/inter-roman-latin.2ed14f66.woff2" as="font" type="font/woff2" crossorigin="">
  <link rel="modulepreload" href="/webzen-ui/assets/chunks/framework.bc40fd44.js">
  <link rel="modulepreload" href="/webzen-ui/assets/chunks/theme.783db136.js">
  <link rel="modulepreload" href="/webzen-ui/assets/chunks/index.4ed993c7.js">
  <link rel="modulepreload" href="/webzen-ui/assets/components_slider.md.984963b8.lean.js">
  <link rel="icon" type="image/svg+xml" href="/sword.svg">
  <script id="check-dark-light">(()=>{const e=localStorage.getItem("vitepress-theme-appearance")||"",a=window.matchMedia("(prefers-color-scheme: dark)").matches;(!e||e==="auto"?a:e==="dark")&&document.documentElement.classList.add("dark")})();</script>
  <script>import("/webzen-ui/_pagefind/pagefind.js").then(n=>{window.__pagefind__=n}).catch(()=>{console.log("not load /_pagefind/pagefind.js")});</script>
  </head>
  <body><!--v-if--><!--teleport anchor-->
    <div id="app"><div class="Layout" data-v-f0b011de><!--[--><!--]--><!--[--><span tabindex="-1" data-v-c8616af1></span><a href="#VPContent" class="VPSkipLink visually-hidden" data-v-c8616af1> Skip to content </a><!--]--><!----><header class="VPNav" data-v-f0b011de data-v-7e5bc4a5><div class="VPNavBar has-sidebar" data-v-7e5bc4a5 data-v-94c81dcc><div class="container" data-v-94c81dcc><div class="title" data-v-94c81dcc><div class="VPNavBarTitle has-sidebar" data-v-94c81dcc data-v-f4ef19a3><a class="title" href="/webzen-ui/" data-v-f4ef19a3><!--[--><!--]--><!--[--><img class="VPImage logo" src="/webzen-ui/logo.svg" alt data-v-6db2186b><!--]--><!--[-->Webzen-ui<!--]--><!--[--><!--]--></a></div></div><div class="content" data-v-94c81dcc><div class="curtain" data-v-94c81dcc></div><div class="content-body" data-v-94c81dcc><!--[--><!--]--><div class="blog-search search" data-pagefind-ignore="all" data-v-94c81dcc style="--1aad441c:1;" data-v-edf2191d><div class="nav-search-btn-wait" data-v-edf2191d><svg width="14" height="14" viewBox="0 0 20 20" data-v-edf2191d><path d="M14.386 14.386l4.0877 4.0877-4.0877-4.0877c-2.9418 2.9419-7.7115 2.9419-10.6533 0-2.9419-2.9418-2.9419-7.7115 0-10.6533 2.9418-2.9419 7.7115-2.9419 10.6533 0 2.9419 2.9418 2.9419 7.7115 0 10.6533z" stroke="currentColor" fill="none" fill-rule="evenodd" stroke-linecap="round" stroke-linejoin="round" data-v-edf2191d></path></svg><span class="search-tip" data-v-edf2191d>搜索</span><span class="metaKey" data-v-edf2191d> K </span></div><!--teleport start--><!--teleport end--></div><nav aria-labelledby="main-nav-aria-label" class="VPNavBarMenu menu" data-v-94c81dcc data-v-7f418b0f><span id="main-nav-aria-label" class="visually-hidden" data-v-7f418b0f>Main Navigation</span><!--[--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/webzen-ui/" tabindex="0" data-v-7f418b0f data-v-37adc828 data-v-8f4dc553><!--[-->首页<!--]--><!----></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/webzen-ui/guide/quick%20start" tabindex="0" data-v-7f418b0f data-v-37adc828 data-v-8f4dc553><!--[-->指南<!--]--><!----></a><!--]--><!--[--><a class="VPLink link VPNavBarMenuLink" href="/webzen-ui/components/icon" tabindex="0" data-v-7f418b0f data-v-37adc828 data-v-8f4dc553><!--[-->组件<!--]--><!----></a><!--]--><!--]--></nav><!----><div class="VPNavBarAppearance appearance" data-v-94c81dcc data-v-f6a63727><label title="toggle dark mode" data-v-f6a63727 data-v-a9c8afb8><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" aria-checked="false" data-v-a9c8afb8 data-v-f3c41672><span class="check" data-v-f3c41672><span class="icon" data-v-f3c41672><!--[--><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="sun" data-v-a9c8afb8><path d="M12,18c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S15.3,18,12,18zM12,8c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4C16,9.8,14.2,8,12,8z"></path><path d="M12,4c-0.6,0-1-0.4-1-1V1c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,3.6,12.6,4,12,4z"></path><path d="M12,24c-0.6,0-1-0.4-1-1v-2c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,23.6,12.6,24,12,24z"></path><path d="M5.6,6.6c-0.3,0-0.5-0.1-0.7-0.3L3.5,4.9c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C6.2,6.5,5.9,6.6,5.6,6.6z"></path><path d="M19.8,20.8c-0.3,0-0.5-0.1-0.7-0.3l-1.4-1.4c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C20.3,20.7,20,20.8,19.8,20.8z"></path><path d="M3,13H1c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S3.6,13,3,13z"></path><path d="M23,13h-2c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S23.6,13,23,13z"></path><path d="M4.2,20.8c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C4.7,20.7,4.5,20.8,4.2,20.8z"></path><path d="M18.4,6.6c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C18.9,6.5,18.6,6.6,18.4,6.6z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="moon" data-v-a9c8afb8><path d="M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"></path></svg><!--]--></span></span></button></label></div><div class="VPSocialLinks VPNavBarSocialLinks social-links" data-v-94c81dcc data-v-0394ad82 data-v-f6988cfb><!--[--><a class="VPSocialLink" href="https://gitee.com/Electrolux" aria-label="github" target="_blank" rel="noopener" data-v-f6988cfb data-v-c530cc0a><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><!--]--></div><div class="VPFlyout VPNavBarExtra extra" data-v-94c81dcc data-v-40855f84 data-v-764effdf><button type="button" class="button" aria-haspopup="true" aria-expanded="false" aria-label="extra navigation" data-v-764effdf><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="icon" data-v-764effdf><circle cx="12" cy="12" r="2"></circle><circle cx="19" cy="12" r="2"></circle><circle cx="5" cy="12" r="2"></circle></svg></button><div class="menu" data-v-764effdf><div class="VPMenu" data-v-764effdf data-v-e7ea1737><!----><!--[--><!--[--><!----><div class="group" data-v-40855f84><div class="item appearance" data-v-40855f84><p class="label" data-v-40855f84>Appearance</p><div class="appearance-action" data-v-40855f84><label title="toggle dark mode" data-v-40855f84 data-v-a9c8afb8><button class="VPSwitch VPSwitchAppearance" type="button" role="switch" aria-checked="false" data-v-a9c8afb8 data-v-f3c41672><span class="check" data-v-f3c41672><span class="icon" data-v-f3c41672><!--[--><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="sun" data-v-a9c8afb8><path d="M12,18c-3.3,0-6-2.7-6-6s2.7-6,6-6s6,2.7,6,6S15.3,18,12,18zM12,8c-2.2,0-4,1.8-4,4c0,2.2,1.8,4,4,4c2.2,0,4-1.8,4-4C16,9.8,14.2,8,12,8z"></path><path d="M12,4c-0.6,0-1-0.4-1-1V1c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,3.6,12.6,4,12,4z"></path><path d="M12,24c-0.6,0-1-0.4-1-1v-2c0-0.6,0.4-1,1-1s1,0.4,1,1v2C13,23.6,12.6,24,12,24z"></path><path d="M5.6,6.6c-0.3,0-0.5-0.1-0.7-0.3L3.5,4.9c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C6.2,6.5,5.9,6.6,5.6,6.6z"></path><path d="M19.8,20.8c-0.3,0-0.5-0.1-0.7-0.3l-1.4-1.4c-0.4-0.4-0.4-1,0-1.4s1-0.4,1.4,0l1.4,1.4c0.4,0.4,0.4,1,0,1.4C20.3,20.7,20,20.8,19.8,20.8z"></path><path d="M3,13H1c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S3.6,13,3,13z"></path><path d="M23,13h-2c-0.6,0-1-0.4-1-1s0.4-1,1-1h2c0.6,0,1,0.4,1,1S23.6,13,23,13z"></path><path d="M4.2,20.8c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C4.7,20.7,4.5,20.8,4.2,20.8z"></path><path d="M18.4,6.6c-0.3,0-0.5-0.1-0.7-0.3c-0.4-0.4-0.4-1,0-1.4l1.4-1.4c0.4-0.4,1-0.4,1.4,0s0.4,1,0,1.4l-1.4,1.4C18.9,6.5,18.6,6.6,18.4,6.6z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="moon" data-v-a9c8afb8><path d="M12.1,22c-0.3,0-0.6,0-0.9,0c-5.5-0.5-9.5-5.4-9-10.9c0.4-4.8,4.2-8.6,9-9c0.4,0,0.8,0.2,1,0.5c0.2,0.3,0.2,0.8-0.1,1.1c-2,2.7-1.4,6.4,1.3,8.4c2.1,1.6,5,1.6,7.1,0c0.3-0.2,0.7-0.3,1.1-0.1c0.3,0.2,0.5,0.6,0.5,1c-0.2,2.7-1.5,5.1-3.6,6.8C16.6,21.2,14.4,22,12.1,22zM9.3,4.4c-2.9,1-5,3.6-5.2,6.8c-0.4,4.4,2.8,8.3,7.2,8.7c2.1,0.2,4.2-0.4,5.8-1.8c1.1-0.9,1.9-2.1,2.4-3.4c-2.5,0.9-5.3,0.5-7.5-1.1C9.2,11.4,8.1,7.7,9.3,4.4z"></path></svg><!--]--></span></span></button></label></div></div></div><div class="group" data-v-40855f84><div class="item social-links" data-v-40855f84><div class="VPSocialLinks social-links-list" data-v-40855f84 data-v-f6988cfb><!--[--><a class="VPSocialLink" href="https://gitee.com/Electrolux" aria-label="github" target="_blank" rel="noopener" data-v-f6988cfb data-v-c530cc0a><svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitHub</title><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"/></svg></a><!--]--></div></div></div><!--]--><!--]--></div></div></div><!--[--><!--]--><button type="button" class="VPNavBarHamburger hamburger" aria-label="mobile navigation" aria-expanded="false" aria-controls="VPNavScreen" data-v-94c81dcc data-v-e5dd9c1c><span class="container" data-v-e5dd9c1c><span class="top" data-v-e5dd9c1c></span><span class="middle" data-v-e5dd9c1c></span><span class="bottom" data-v-e5dd9c1c></span></span></button></div></div></div></div><!----></header><div class="VPLocalNav" data-v-f0b011de data-v-392e1bf8><button class="menu" aria-expanded="false" aria-controls="VPSidebarNav" data-v-392e1bf8><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" viewbox="0 0 24 24" class="menu-icon" data-v-392e1bf8><path d="M17,11H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,11,17,11z"></path><path d="M21,7H3C2.4,7,2,6.6,2,6s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,7,21,7z"></path><path d="M21,15H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h18c0.6,0,1,0.4,1,1S21.6,15,21,15z"></path><path d="M17,19H3c-0.6,0-1-0.4-1-1s0.4-1,1-1h14c0.6,0,1,0.4,1,1S17.6,19,17,19z"></path></svg><span class="menu-text" data-v-392e1bf8>Menu</span></button><div class="VPLocalNavOutlineDropdown" style="--vp-vh:0px;" data-v-392e1bf8 data-v-079b16a8><button data-v-079b16a8>Return to top</button><!----></div></div><aside class="VPSidebar" data-v-f0b011de data-v-af16598e><div class="curtain" data-v-af16598e></div><nav class="nav" id="VPSidebarNav" aria-labelledby="sidebar-aria-label" tabindex="-1" data-v-af16598e><span class="visually-hidden" id="sidebar-aria-label" data-v-af16598e> Sidebar Navigation </span><!--[--><!--]--><!--[--><div class="group" data-v-af16598e><section class="VPSidebarItem level-0" data-v-af16598e data-v-c4656e6d><div class="item" role="button" tabindex="0" data-v-c4656e6d><div class="indicator" data-v-c4656e6d></div><h2 class="text" data-v-c4656e6d>通用</h2><!----></div><div class="items" data-v-c4656e6d><!--[--><div class="VPSidebarItem level-1 is-link" data-v-c4656e6d data-v-c4656e6d><div class="item" data-v-c4656e6d><div class="indicator" data-v-c4656e6d></div><a class="VPLink link link" href="/webzen-ui/components/icon" data-v-c4656e6d data-v-8f4dc553><!--[--><p class="text" data-v-c4656e6d>icon</p><!--]--><!----></a><!----></div><!----></div><!--]--></div></section></div><div class="group" data-v-af16598e><section class="VPSidebarItem level-0" data-v-af16598e data-v-c4656e6d><div class="item" role="button" tabindex="0" data-v-c4656e6d><div class="indicator" data-v-c4656e6d></div><h2 class="text" data-v-c4656e6d>表单控件</h2><!----></div><div class="items" data-v-c4656e6d><!--[--><div class="VPSidebarItem level-1 is-link" data-v-c4656e6d data-v-c4656e6d><div class="item" data-v-c4656e6d><div class="indicator" data-v-c4656e6d></div><a class="VPLink link link" href="/webzen-ui/components/button" data-v-c4656e6d data-v-8f4dc553><!--[--><p class="text" data-v-c4656e6d>button</p><!--]--><!----></a><!----></div><!----></div><!--]--></div></section></div><div class="group" data-v-af16598e><section class="VPSidebarItem level-0" data-v-af16598e data-v-c4656e6d><div class="item" role="button" tabindex="0" data-v-c4656e6d><div class="indicator" data-v-c4656e6d></div><h2 class="text" data-v-c4656e6d>交互</h2><!----></div><div class="items" data-v-c4656e6d><!--[--><div class="VPSidebarItem level-1 is-link" data-v-c4656e6d data-v-c4656e6d><div class="item" data-v-c4656e6d><div class="indicator" data-v-c4656e6d></div><a class="VPLink link link" href="/webzen-ui/components/message" data-v-c4656e6d data-v-8f4dc553><!--[--><p class="text" data-v-c4656e6d>message</p><!--]--><!----></a><!----></div><!----></div><!--]--></div></section></div><!--]--><!--[--><!--]--></nav></aside><div class="VPContent has-sidebar" id="VPContent" data-pagefind-body data-v-f0b011de data-v-a494bd1d><div class="VPDoc has-sidebar has-aside" data-v-a494bd1d data-v-c4b0d3cf><!--[--><!--]--><div class="container" data-v-c4b0d3cf><div class="aside" data-v-c4b0d3cf><div class="aside-curtain" data-v-c4b0d3cf></div><div class="aside-container" data-v-c4b0d3cf><div class="aside-content" data-v-c4b0d3cf><div class="VPDocAside" data-v-c4b0d3cf data-v-3f215769><!--[--><!--]--><!--[--><!--]--><div class="VPDocAsideOutline" data-v-3f215769 data-v-ff0f39c8><div class="content" data-v-ff0f39c8><div class="outline-marker" data-v-ff0f39c8></div><div class="outline-title" data-v-ff0f39c8>目录</div><nav aria-labelledby="doc-outline-aria-label" data-v-ff0f39c8><span class="visually-hidden" id="doc-outline-aria-label" data-v-ff0f39c8> Table of Contents for current page </span><ul class="root" data-v-ff0f39c8 data-v-9a431c33><!--[--><!--]--></ul></nav></div></div><!--[--><!--]--><div class="spacer" data-v-3f215769></div><!--[--><!--]--><!----><!--[--><!--]--><!--[--><!--]--></div></div></div></div><div class="content" data-v-c4b0d3cf><div class="content-container" data-v-c4b0d3cf><!--[--><!--]--><!----><main class="main" data-v-c4b0d3cf><div style="position:relative;" class="vp-doc _webzen-ui_components_slider" data-v-c4b0d3cf><div data-v-b4cfb8fa><h1 id="slider" tabindex="-1" data-v-b4cfb8fa>slider <a class="header-anchor" href="#slider" aria-label="Permalink to &quot;slider&quot;" data-v-b4cfb8fa>​</a></h1><p data-v-b4cfb8fa>滑动条，展示当前值和可选范围。用于替代原生<code data-v-b4cfb8fa>input[type=range]</code>。</p><h2 id="使用方式" tabindex="-1" data-v-b4cfb8fa>使用方式 <a class="header-anchor" href="#使用方式" aria-label="Permalink to &quot;使用方式&quot;" data-v-b4cfb8fa>​</a></h2><div class="language-html" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>html</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#676E95;font-style:italic;" data-v-b4cfb8fa>&lt;!-- 引入 --&gt;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>&lt;</span><span style="color:#F07178;" data-v-b4cfb8fa>script</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>type</span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>module</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>    </span><span style="color:#89DDFF;font-style:italic;" data-v-b4cfb8fa>import</span><span style="color:#A6ACCD;" data-v-b4cfb8fa> </span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>../components/slider/index.js</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>&lt;/</span><span style="color:#F07178;" data-v-b4cfb8fa>script</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#676E95;font-style:italic;" data-v-b4cfb8fa>&lt;!-- 使用 --&gt;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>&lt;</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;&lt;/</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;</span></span></code></pre></div><p data-v-b4cfb8fa><code data-v-b4cfb8fa>xy-slider</code>属性与原生<code data-v-b4cfb8fa>input[type=range]</code>大致相同，如下</p><h2 id="值value" tabindex="-1" data-v-b4cfb8fa>值<code data-v-b4cfb8fa>value</code> <a class="header-anchor" href="#值value" aria-label="Permalink to &quot;值`value`&quot;" data-v-b4cfb8fa>​</a></h2><p data-v-b4cfb8fa>设置或返回滑块条的默认值（默认为50）。</p><div class="wrap" vertical data-v-b4cfb8fa><!----><!----><!----><!----></div><div class="language-html" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>html</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>&lt;</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;&lt;/</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>&lt;</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>value</span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>30</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;&lt;/</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>&lt;</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>value</span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>100</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;&lt;/</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;</span></span></code></pre></div><h2 id="禁用disabled" tabindex="-1" data-v-b4cfb8fa>禁用<code data-v-b4cfb8fa>disabled</code> <a class="header-anchor" href="#禁用disabled" aria-label="Permalink to &quot;禁用`disabled`&quot;" data-v-b4cfb8fa>​</a></h2><p data-v-b4cfb8fa>通过<code data-v-b4cfb8fa>disabled</code>可以禁用滑动条。</p><div class="wrap" data-v-b4cfb8fa><!----><!----></div><div class="language-html" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>html</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>&lt;</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>disabled</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;&lt;/</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;</span></span></code></pre></div><p data-v-b4cfb8fa>JavaScript操作<code data-v-b4cfb8fa>get</code>、<code data-v-b4cfb8fa>set</code></p><div class="language-js" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>js</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>disabled</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span><span style="color:#A6ACCD;" data-v-b4cfb8fa> </span><span style="color:#676E95;font-style:italic;" data-v-b4cfb8fa>//获取</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>disabled </span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#A6ACCD;" data-v-b4cfb8fa> </span><span style="color:#FF9CAC;" data-v-b4cfb8fa>false</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>disabled </span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#A6ACCD;" data-v-b4cfb8fa> </span><span style="color:#FF9CAC;" data-v-b4cfb8fa>true</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#676E95;font-style:italic;" data-v-b4cfb8fa>//原生属性操作</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>setAttribute</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>(</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>disabled</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#89DDFF;" data-v-b4cfb8fa>,</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;&#39;</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>removeAttribute</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>(</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>disabled</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span></code></pre></div><h2 id="提示tips" tabindex="-1" data-v-b4cfb8fa>提示<code data-v-b4cfb8fa>tips</code> <a class="header-anchor" href="#提示tips" aria-label="Permalink to &quot;提示`tips`&quot;" data-v-b4cfb8fa>​</a></h2><p data-v-b4cfb8fa>可以添加<code data-v-b4cfb8fa>tips</code>属性，可以在滑动时显示<code data-v-b4cfb8fa>value</code>值。</p><div class="wrap" data-v-b4cfb8fa><!----></div><div class="language-html" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>html</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>&lt;</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>value</span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>30</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>tips</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;&lt;/</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;</span></span></code></pre></div><p data-v-b4cfb8fa>还可以进行插值表达式<code data-v-b4cfb8fa>${value}</code></p><div class="wrap" data-v-b4cfb8fa><!----></div><div class="language-html" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>html</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>&lt;</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>tips</span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>￥${value*2}</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;&lt;/</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;</span></span></code></pre></div><p data-v-b4cfb8fa>JavaScript操作<code data-v-b4cfb8fa>set</code></p><div class="language-js" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>js</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>tips </span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#A6ACCD;" data-v-b4cfb8fa> </span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>${value}%</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>tips </span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#A6ACCD;" data-v-b4cfb8fa> </span><span style="color:#FF9CAC;" data-v-b4cfb8fa>false</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#676E95;font-style:italic;" data-v-b4cfb8fa>//原生属性操作</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>setAttribute</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>(</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>tips</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#89DDFF;" data-v-b4cfb8fa>,</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>${value}%</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>removeAttribute</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>(</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>tips</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span></code></pre></div><h2 id="最小值min、最大值max、步长step" tabindex="-1" data-v-b4cfb8fa>最小值<code data-v-b4cfb8fa>min</code>、最大值<code data-v-b4cfb8fa>max</code>、步长<code data-v-b4cfb8fa>step</code> <a class="header-anchor" href="#最小值min、最大值max、步长step" aria-label="Permalink to &quot;最小值`min`、最大值`max`、步长`step`&quot;" data-v-b4cfb8fa>​</a></h2><p data-v-b4cfb8fa>设置或返回滑块条的<code data-v-b4cfb8fa>min</code>和<code data-v-b4cfb8fa>max</code>属性值。默认值分别为<code data-v-b4cfb8fa>0</code>和<code data-v-b4cfb8fa>100</code>。</p><p data-v-b4cfb8fa>设置或返回滑块条的<code data-v-b4cfb8fa>step</code>属性值。默认值为<code data-v-b4cfb8fa>1</code>。</p><div class="wrap" data-v-b4cfb8fa><!----></div><div class="wrap" noborder data-v-b4cfb8fa> min: <input class="input" style="width:100px;" label="min" type="number" value="0" min="-100" max="100" oninput="document.getElementById(&#39;xy-slider-step&#39;).min=this.value;" data-v-b4cfb8fa> max: <input class="input" style="width:100px;" label="max" type="number" value="100" min="1" max="300" oninput="document.getElementById(&#39;xy-slider-step&#39;).max=this.value;" data-v-b4cfb8fa> step: <input class="input" style="width:100px;" label="step" type="number" value="10" min="1" max="50" oninput="document.getElementById(&#39;xy-slider-step&#39;).step=this.value;" data-v-b4cfb8fa></div><div class="language-html" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>html</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>&lt;</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>min</span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>0</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>max</span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>100</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>step</span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>10</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>tips</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;&lt;/</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;</span></span></code></pre></div><p data-v-b4cfb8fa>JavaScript操作<code data-v-b4cfb8fa>get</code>、<code data-v-b4cfb8fa>set</code></p><div class="language-js" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>js</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>step</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span><span style="color:#A6ACCD;" data-v-b4cfb8fa> </span><span style="color:#676E95;font-style:italic;" data-v-b4cfb8fa>//获取</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>step </span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#A6ACCD;" data-v-b4cfb8fa> </span><span style="color:#F78C6C;" data-v-b4cfb8fa>10</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#676E95;font-style:italic;" data-v-b4cfb8fa>//原生属性操作</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>getAttribute</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>(</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>step</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>setAttribute</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>(</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>step</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#89DDFF;" data-v-b4cfb8fa>,</span><span style="color:#F78C6C;" data-v-b4cfb8fa>10</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span></code></pre></div><h2 id="垂直滑动条vertical" tabindex="-1" data-v-b4cfb8fa>垂直滑动条<code data-v-b4cfb8fa>vertical</code> <a class="header-anchor" href="#垂直滑动条vertical" aria-label="Permalink to &quot;垂直滑动条`vertical`&quot;" data-v-b4cfb8fa>​</a></h2><p data-v-b4cfb8fa>添加<code data-v-b4cfb8fa>vertical</code>属性可以垂直展示</p><div class="wrap" data-v-b4cfb8fa><!----></div><div class="language-html" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>html</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>&lt;</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>vertical</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>tips</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;&lt;/</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;</span></span></code></pre></div><p data-v-b4cfb8fa>默认高度为<code data-v-b4cfb8fa>150px</code>，可以使用<code data-v-b4cfb8fa>CSS</code>修改</p><div class="language-css" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>css</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>{</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>    </span><span style="color:#B2CCD6;" data-v-b4cfb8fa>height</span><span style="color:#89DDFF;" data-v-b4cfb8fa>:</span><span style="color:#F78C6C;" data-v-b4cfb8fa>200px</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>}</span></span></code></pre></div><div class="wrap" data-v-b4cfb8fa><!----></div><h2 id="自定义样式-part-slider" tabindex="-1" data-v-b4cfb8fa>自定义样式<code data-v-b4cfb8fa>::part(slider)</code> <a class="header-anchor" href="#自定义样式-part-slider" aria-label="Permalink to &quot;自定义样式`::part(slider)`&quot;" data-v-b4cfb8fa>​</a></h2><p data-v-b4cfb8fa>需要注意的是，<code data-v-b4cfb8fa>xy-slider</code>本身不包含任意样式，如果需要自定义滑动输入条本身样式，需要深入到<code data-v-b4cfb8fa>shadow dom</code>中，这里暴露了内置伪元素<code data-v-b4cfb8fa>::part(slider)</code>用来自定义样式</p><p data-v-b4cfb8fa>内部结构如下（可查看控制台）：</p><div class="language-html" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>html</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>&lt;</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>  # shadow-root</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>    </span><span style="color:#89DDFF;" data-v-b4cfb8fa>&lt;</span><span style="color:#F07178;" data-v-b4cfb8fa>input</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>type</span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>range</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>part</span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>      ::after</span></span></code></pre></div><p data-v-b4cfb8fa>比如改为实心的滑块（仅支持Chrome）</p><div class="wrap" data-v-b4cfb8fa><!----></div><div class="language-css" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>css</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#FFCB6B;" data-v-b4cfb8fa>xy-slider</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>::part(slider)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>::</span><span style="color:#C792EA;" data-v-b4cfb8fa>after</span><span style="color:#89DDFF;" data-v-b4cfb8fa>{</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>  </span><span style="color:#B2CCD6;" data-v-b4cfb8fa>background</span><span style="color:#89DDFF;" data-v-b4cfb8fa>:</span><span style="color:#A6ACCD;" data-v-b4cfb8fa> </span><span style="color:#82AAFF;" data-v-b4cfb8fa>var</span><span style="color:#89DDFF;" data-v-b4cfb8fa>(</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>--primary-color</span><span style="color:#89DDFF;" data-v-b4cfb8fa>)</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>}</span></span></code></pre></div><h2 id="事件event" tabindex="-1" data-v-b4cfb8fa>事件<code data-v-b4cfb8fa>event</code> <a class="header-anchor" href="#事件event" aria-label="Permalink to &quot;事件`event`&quot;" data-v-b4cfb8fa>​</a></h2><p data-v-b4cfb8fa>该组件暴露了常见的回调事件</p><h3 id="onchange" tabindex="-1" data-v-b4cfb8fa>onchange <a class="header-anchor" href="#onchange" aria-label="Permalink to &quot;onchange&quot;" data-v-b4cfb8fa>​</a></h3><p data-v-b4cfb8fa>滑动条在滑动完成时触发。</p><div class="wrap" data-v-b4cfb8fa><!----></div><div class="language-html" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>html</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>&lt;</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>tips</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>onchange</span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#82AAFF;" data-v-b4cfb8fa>fn</span><span style="color:#C3E88D;" data-v-b4cfb8fa>(</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>event</span><span style="color:#C3E88D;" data-v-b4cfb8fa>)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;&lt;/</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;</span></span></code></pre></div><p data-v-b4cfb8fa>其他触发方式</p><div class="language-js" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>js</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>onchange</span><span style="color:#A6ACCD;" data-v-b4cfb8fa> </span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#A6ACCD;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>function</span><span style="color:#89DDFF;" data-v-b4cfb8fa>(</span><span style="color:#A6ACCD;font-style:italic;" data-v-b4cfb8fa>ev</span><span style="color:#89DDFF;" data-v-b4cfb8fa>){</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>    </span><span style="color:#676E95;font-style:italic;" data-v-b4cfb8fa>//获取value的几种方式</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#F07178;" data-v-b4cfb8fa>    </span><span style="color:#A6ACCD;" data-v-b4cfb8fa>console</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>log</span><span style="color:#F07178;" data-v-b4cfb8fa>(</span><span style="color:#89DDFF;" data-v-b4cfb8fa>this.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>value</span><span style="color:#F07178;" data-v-b4cfb8fa>)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#F07178;" data-v-b4cfb8fa>    </span><span style="color:#A6ACCD;" data-v-b4cfb8fa>console</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>log</span><span style="color:#F07178;" data-v-b4cfb8fa>(</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>ev</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>target</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>value</span><span style="color:#F07178;" data-v-b4cfb8fa>)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>}</span></span>
<span class="line" data-v-b4cfb8fa></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>addEventListener</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>(</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>change</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#89DDFF;" data-v-b4cfb8fa>,</span><span style="color:#C792EA;" data-v-b4cfb8fa>function</span><span style="color:#89DDFF;" data-v-b4cfb8fa>(</span><span style="color:#A6ACCD;font-style:italic;" data-v-b4cfb8fa>ev</span><span style="color:#89DDFF;" data-v-b4cfb8fa>){</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#F07178;" data-v-b4cfb8fa>    </span><span style="color:#A6ACCD;" data-v-b4cfb8fa>console</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>log</span><span style="color:#F07178;" data-v-b4cfb8fa>(</span><span style="color:#89DDFF;" data-v-b4cfb8fa>this.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>value</span><span style="color:#F07178;" data-v-b4cfb8fa>)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#F07178;" data-v-b4cfb8fa>    </span><span style="color:#A6ACCD;" data-v-b4cfb8fa>console</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>log</span><span style="color:#F07178;" data-v-b4cfb8fa>(</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>ev</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>target</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>value</span><span style="color:#F07178;" data-v-b4cfb8fa>)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>}</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>)</span></span></code></pre></div><h3 id="oninput" tabindex="-1" data-v-b4cfb8fa>oninput <a class="header-anchor" href="#oninput" aria-label="Permalink to &quot;oninput&quot;" data-v-b4cfb8fa>​</a></h3><p data-v-b4cfb8fa>滑动条在滑动时触发。</p><div class="wrap" data-v-b4cfb8fa><!----></div><div class="language-html" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>html</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>&lt;</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>tips</span><span style="color:#89DDFF;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>oninput</span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#82AAFF;" data-v-b4cfb8fa>fn</span><span style="color:#C3E88D;" data-v-b4cfb8fa>(</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>event</span><span style="color:#C3E88D;" data-v-b4cfb8fa>)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&quot;</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;&lt;/</span><span style="color:#F07178;" data-v-b4cfb8fa>xy-slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&gt;</span></span></code></pre></div><div class="language-js" data-v-b4cfb8fa><button title="Copy Code" class="copy" data-v-b4cfb8fa></button><span class="lang" data-v-b4cfb8fa>js</span><pre class="shiki material-theme-palenight" data-v-b4cfb8fa><code data-v-b4cfb8fa><span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>oninput</span><span style="color:#A6ACCD;" data-v-b4cfb8fa> </span><span style="color:#89DDFF;" data-v-b4cfb8fa>=</span><span style="color:#A6ACCD;" data-v-b4cfb8fa> </span><span style="color:#C792EA;" data-v-b4cfb8fa>function</span><span style="color:#89DDFF;" data-v-b4cfb8fa>(</span><span style="color:#A6ACCD;font-style:italic;" data-v-b4cfb8fa>ev</span><span style="color:#89DDFF;" data-v-b4cfb8fa>){</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#F07178;" data-v-b4cfb8fa>    </span><span style="color:#A6ACCD;" data-v-b4cfb8fa>console</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>log</span><span style="color:#F07178;" data-v-b4cfb8fa>(</span><span style="color:#89DDFF;" data-v-b4cfb8fa>this.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>value</span><span style="color:#F07178;" data-v-b4cfb8fa>)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#F07178;" data-v-b4cfb8fa>    </span><span style="color:#A6ACCD;" data-v-b4cfb8fa>console</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>log</span><span style="color:#F07178;" data-v-b4cfb8fa>(</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>ev</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>target</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>value</span><span style="color:#F07178;" data-v-b4cfb8fa>)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>}</span></span>
<span class="line" data-v-b4cfb8fa></span>
<span class="line" data-v-b4cfb8fa><span style="color:#A6ACCD;" data-v-b4cfb8fa>slider</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>addEventListener</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>(</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#C3E88D;" data-v-b4cfb8fa>input</span><span style="color:#89DDFF;" data-v-b4cfb8fa>&#39;</span><span style="color:#89DDFF;" data-v-b4cfb8fa>,</span><span style="color:#C792EA;" data-v-b4cfb8fa>function</span><span style="color:#89DDFF;" data-v-b4cfb8fa>(</span><span style="color:#A6ACCD;font-style:italic;" data-v-b4cfb8fa>ev</span><span style="color:#89DDFF;" data-v-b4cfb8fa>){</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#F07178;" data-v-b4cfb8fa>    </span><span style="color:#A6ACCD;" data-v-b4cfb8fa>console</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>log</span><span style="color:#F07178;" data-v-b4cfb8fa>(</span><span style="color:#89DDFF;" data-v-b4cfb8fa>this.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>value</span><span style="color:#F07178;" data-v-b4cfb8fa>)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#F07178;" data-v-b4cfb8fa>    </span><span style="color:#A6ACCD;" data-v-b4cfb8fa>console</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#82AAFF;" data-v-b4cfb8fa>log</span><span style="color:#F07178;" data-v-b4cfb8fa>(</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>ev</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>target</span><span style="color:#89DDFF;" data-v-b4cfb8fa>.</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>value</span><span style="color:#F07178;" data-v-b4cfb8fa>)</span><span style="color:#89DDFF;" data-v-b4cfb8fa>;</span></span>
<span class="line" data-v-b4cfb8fa><span style="color:#89DDFF;" data-v-b4cfb8fa>}</span><span style="color:#A6ACCD;" data-v-b4cfb8fa>)</span></span></code></pre></div></div></div></main><footer class="VPDocFooter" data-v-c4b0d3cf data-v-face870a><!--[--><!--]--><div class="edit-info" data-v-face870a><!----><div class="last-updated" data-v-face870a><p class="VPLastUpdated" data-v-face870a data-v-7b3ebfe1>Last updated: <time datetime="2023-05-06T07:38:56.000Z" data-v-7b3ebfe1></time></p></div></div><div class="prev-next" data-v-face870a><div class="pager" data-v-face870a><!----></div><div class="pager" data-v-face870a><a class="pager-link next" href="/webzen-ui/components/icon" data-v-face870a><span class="desc" data-v-face870a>Next page</span><span class="title" data-v-face870a>icon</span></a></div></div></footer><!--[--><!--]--></div></div></div><!--[--><!--]--></div></div><footer class="VPFooter has-sidebar" data-v-f0b011de data-v-2f86ebd2><div class="container" data-v-2f86ebd2><p class="message" data-v-2f86ebd2>MIT License.</p><p class="copyright" data-v-2f86ebd2>Copyright © 2023～present Electrolux</p></div></footer><!--[--><!--]--></div></div>
    <script>__VP_HASH_MAP__ = JSON.parse("{\"index.md\":\"5c209c29\",\"guide_quick start.md\":\"25afa907\",\"components_message.md\":\"5d465999\",\"components_icon.md\":\"c953bb2a\",\"components_button.md\":\"be6c65ad\",\"components_tips.md\":\"d552ad3c\",\"components_slider.md\":\"984963b8\"}")
__VP_SITE_DATA__ = JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"Webzen-ui\",\"description\":\"hello world\",\"base\":\"/webzen-ui/\",\"head\":[],\"appearance\":true,\"themeConfig\":{\"outlineTitle\":\"目录\",\"i18nRouting\":true,\"logo\":\"/logo.svg\",\"nav\":[{\"text\":\"首页\",\"link\":\"/\"},{\"text\":\"指南\",\"link\":\"/guide/quick start\"},{\"text\":\"组件\",\"link\":\"/components/icon\"}],\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://gitee.com/Electrolux\"}],\"footer\":{\"message\":\"MIT License.\",\"copyright\":\"Copyright © 2023～present Electrolux\"},\"sidebar\":{\"/components/\":[{\"text\":\"通用\",\"items\":[{\"text\":\"icon\",\"link\":\"/components/icon\"}]},{\"text\":\"表单控件\",\"items\":[{\"text\":\"button\",\"link\":\"/components/button\"}]},{\"text\":\"交互\",\"items\":[{\"text\":\"message\",\"link\":\"/components/message\"}]}]}},\"locales\":{},\"scrollOffset\":90,\"cleanUrls\":true}")</script>
    
  </body>
</html>